package com.zzxx.shooter;

import java.awt.image.BufferedImage;

public class Ember {
    private int x;
    private int y;
    private BufferedImage[] images;// 用来存放所有对应的灰烬图片
    private int index;
    public Ember(FlyingObject fly) {
        this.x = fly.getX();
        this.y = fly.getY();
        images = fly.emberImages;
        index=0;
    }
    public void step() {
        // 切换图片 - 参考英雄机切换图片
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }



    public BufferedImage[] getImages() {
        return images;
    }

    public void setImages(BufferedImage[] images) {
        this.images = images;
    }
    public void count(){
        index++;
    }
    public int getIndex(){
        return index;
    }

}
